# @Time : 2021/9/19 21:21
# @Author : lsy
# @Contact: 363925670@qq.com
import hashlib

# 哈希工具
class HashUtils:
    # 将字符串转换为sha1
    def to_sha1(self, str):
        sha1 = hashlib.sha1()
        sha1.update(str.encode("utf-8"))
        return sha1.hexdigest()
